Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Algolia index as part of the website deployment pipeline #2434

Merged
merged 2 commits into from
Apr 13, 2023

Conversation

danielelisi
Copy link
Contributor

Description

We can avoid having to run Algolia as a separate scheduled job and instead update the index whenever a new version of the Taquito website is published.

According to the docs when a new index is created, it overwrites the previous one. We don't need to delete the old index before running the docsearch-scraper, so I removed the step from the job and deleted the delete-index.js script.

The DocSearch scraper follows the recommended atomic-reindexing strategy. It creates a brand new temporary index to populate the data scraped from your website. When successful, the crawl overwrites the old index defined in your configuration with the key index_name.

Test Plan

I tested running the Update Algolia Index in a separate workflow file, and I can confirm that it works as expected https://github.com/ecadlabs/taquito/actions/runs/4693185099/jobs/8319833341#step:4:155

@netlify
Copy link

netlify bot commented Apr 13, 2023

Deploy Preview for taquito-test-dapp ready!

Name Link
🔨 Latest commit 35880d9
🔍 Latest deploy log https://app.netlify.com/sites/taquito-test-dapp/deploys/6438614289c86f00082f8481
😎 Deploy Preview https://deploy-preview-2434--taquito-test-dapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

New packages have been deployed to the preview repository at https://npm.preview.tezostaquito.io/.

Published packages:

npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/
npm i @taquito/[email protected] --registry https://npm.preview.tezostaquito.io/

@github-actions
Copy link

A new deploy preview is available on Netlify at https://654f875--tezostaquito.netlify.app

@dsawali dsawali merged commit bcc2118 into master Apr 13, 2023
@dsawali dsawali deleted the fix_algolia_indexing branch April 13, 2023 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants